//先引入mockjs模块
import Mock from 'mockjs'
//把JSON数据格式引入进来[JSON数据格式根本没有对外暴露，但是可以引入]
//webpack默认对外暴露的：图片、JSON数据格式
import focusList from './Home/focusList.json'
import memberStories from './Home/memberStories.json'
import memberActivities from './Home/memberActivities.json'

//mock数据:第一个参数请求地址   第二个参数：请求数据
Mock.mock("/mock/focuslist", {
  code: 200,
  data: focusList
})

Mock.mock("/mock/memberstories", {
  code: 200,
  data: memberStories
})

Mock.mock("/mock/memberactivities", {
  code: 200,
  data: memberActivities
})
